home *** CD-ROM | disk | FTP | other *** search
/ Workbench Add-On / Workbench Add-On - Volume 1.iso / BBS-Archive / Util / Memory / TinyMeterV23.lha / TinyMeter / Install < prev    next >
Text File  |  1995-07-10  |  4KB  |  161 lines

  1. ; Installer Script for TinyMeter V2.2
  2.  
  3. (set @default-dest (""))
  4.  
  5. (set @cpu (database "cpu"))
  6.  
  7. (set @source-file "TinyMeter")
  8.  
  9. (if (= @cpu "68020")
  10.     (set @source-file "TinyMeter.020")
  11. )
  12.  
  13. (if (= @cpu "68030")
  14.     (set @source-file "TinyMeter.020")
  15. )
  16.  
  17. (if (= @cpu "68040")
  18.     (set @source-file "TinyMeter.020")
  19. )
  20.  
  21. (if (= @cpu "68060")
  22.     (set @source-file "TinyMeter.020")
  23. )
  24.  
  25. (set @destdir
  26.         (askdir
  27.                 (prompt "Where should I copy the TinyMeter main program ?")
  28.                 (help "Where's the problem?")
  29.                 (default "SYS:WBStartup/")
  30.         )
  31. )
  32.  
  33. (set @prefsdir
  34.         (askdir
  35.                 (prompt "Where should I copy the TinyMeterPrefs program?")
  36.                 (help "Where's the problem?")
  37.                 (default "SYS:Prefs/")
  38.         )
  39. )
  40.  
  41. (set @CopyFonts
  42.         (askbool
  43.                 (prompt "Do you want to install the additional Fonts?")
  44.                 (help "Where's the problem?")
  45.         )
  46. )
  47.  
  48. (if @CopyFonts
  49.     (set @fontdir
  50.             (askdir
  51.                     (prompt "Where should the fonts be installed?")
  52.                     (help "Where's the problem?")
  53.                     (default "FONTS:")
  54.             )
  55.     )
  56. )
  57.  
  58. (if @CopyFonts
  59.     (set @dofixfont
  60.             (askbool
  61.                     (prompt "Should I do FixFonts for you?")
  62.                     (help "Where's the problem?")
  63.             )
  64.     )
  65. )
  66.  
  67. (set @CopyPatt
  68.         (askbool
  69.                 (prompt "Do you want to install the additional Background patterns?")
  70.                 (help "Where's the problem?")
  71.         )
  72. )
  73.  
  74. (if @CopyPatt
  75.     (set @pattdir
  76.             (askdir
  77.                     (prompt "Where should the background patterns be installed?")
  78.                     (help "Where's the problem?")
  79.                     (default "SYS:Prefs/")
  80.             )
  81.     )
  82. )
  83.  
  84. (copyfiles
  85.         (prompt "Installing the files." )
  86.         (help "Where's the problem?" )
  87.         (source @source-file )
  88.         (infos)
  89.         (newname "TinyMeter")
  90.         (dest @destdir)
  91. )
  92.  
  93. (tooltype
  94.         (help "Where's the problem?" )
  95.         (dest (@destdir "TinyMeter"))
  96.         (noposition)
  97. )
  98.  
  99. (copyfiles
  100.         (prompt "Installing TinyMeter.")
  101.         (help "Where's the problem?")
  102.         (source "Prefs/TinyMeterPrefs")
  103.         (infos)
  104.         (dest @prefsdir)
  105. )
  106.  
  107. (if @CopyFonts
  108.     (copyfiles
  109.             (prompt "Installing additional fonts.")
  110.             (help "Where's the problem?")
  111.             (source "ArtWork/Fonts/")
  112.             (all)
  113.             (dest @fontdir)
  114.     )
  115. )
  116.  
  117. (if @CopyFonts
  118.     (if @dofixfont
  119.             (run "SYS:System/FixFonts"
  120.                     (prompt "Doing FixFonts... May take a while...")
  121.                     (help "Where's the problem?")
  122.             )
  123.     )
  124. )
  125.  
  126. (if @CopyPatt
  127.     (copyfiles
  128.             (prompt "Installing additional background patterns.")
  129.             (help "Where's the problem?")
  130.             (source "ArtWork/Patterns/")
  131.             (all)
  132.             (dest @pattdir)
  133.     )
  134. )
  135.  
  136. (tooltype
  137.         (help "Where's the problem?" )
  138.         (dest (@prefsdir "TinyMeterPrefs"))
  139.         (noposition)
  140. )
  141.  
  142. (copylib
  143.         (prompt "Installing screennotify.library")
  144.         (help "Where's the problem?")
  145.         (source "Libs/screennotify.library")
  146.         (dest "LIBS:")
  147.         (confirm)
  148. )
  149.  
  150. (copylib
  151.         (prompt "Installing bgui.library")
  152.         (help "Where's the problem?")
  153.         (source "Libs/bgui.library")
  154.         (dest "LIBS:")
  155.         (confirm)
  156. )
  157.  
  158. (exit
  159.         "Have phun with this nice piece of soft!!!\n\nNow you should start TinyMeter, setup the position and size and press S to save these settings.\n\nAfter that, start TinyMeterPrefs to setup TinyMeter to your personal taste.\n\nIf there are any problems, don't hesitate to contact the author!"
  160. )
  161.